package demo7;

public class Animal implements Cloneable{
    String name;

    public Animal(String name) {
        this.name = name;
    }
    public Object clone() throws CloneNotSupportedException{
        return super.clone();
    }
}
